<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'home_top.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

	</head>
	<link rel="stylesheet" href="css/nivo-slider.css" type="text/css"
		media="screen" />
	<link rel="stylesheet" href="css/style.css" type="text/css"
		media="screen" />
	<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css"
		media="screen" />
	<script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
	<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
	<body>
		<div id="container">
			<jsp:include page="head.jsp"></jsp:include>
			<div class="menu">
				<ul id="menu">
					<li>
						<a class="l1" href="home.jsp"></a>
					</li>
					<li>
						<a class="l2" href="line.jsp"></a>
					</li>
					<li>
						<a class="l3" href="station.jsp"></a>
					</li>
					<li>
						<a class="l4" href="stos.jsp"></a>
					</li>
					<li>
						<div class="denglu l5" id="show"></div>
					</li>
				</ul>
			</div>
			<%--
			<div>
				查询出
				<span style="color: blue">${fn:length(requestScope.stslist)}</span>条方案：
			</div>
			--%>


			<c:if test="${num==0 }">
				<div id="center1">
					<table class=" wsize table table-striped ">
						<c:forEach var="result" items="${requestScope.stslist}">
							<c:if test="${fn:length(result)==3}">

								<tr>
									<td>
										上车站点
									</td>
									<td>
										乘车线路
									</td>
									<td>
										下车站点
									</td>
								</tr>
								<tr>
									<c:forEach var="plan" items="${result}">
										<td>
											${plan}
										</td>
									</c:forEach>
								</tr>

							</c:if>
						</c:forEach>
					</table>
				</div>
			</c:if>
			<c:if test="${ num==1}">
				<div id="center2">
					<table class=" wsize table table-striped ">
						<tr>
							<td>
								上车站点
							</td>
							<td>
								乘车线路
							</td>
							<td>
								换乘站点
							</td>
							<td>
								换乘线路
							</td>
							<td>
								下车站点
							</td>
						</tr>
						<c:forEach var="result" items="${requestScope.stslist}">
							<c:if test="${fn:length(result)==5}">

								<tr>
									<c:forEach var="plan" items="${result}">
										<td>
											${plan}
										</td>
									</c:forEach>
								</tr>
							</c:if>
						</c:forEach>
					</table>
				</div>
			</c:if>
			<c:if test="${ num==2}">
				<div id="center">
					<table class=" wsize table table-striped ">
						<tr>
							<td>
								上车站点
							</td>
							<td>
								乘车线路
							</td>
							<td>
								换乘站点
							</td>
							<td>
								换乘线路
							</td>
							<td>
								换乘站点
							</td>
							<td>
								换乘线路
							</td>
							<td>
								下车站点
							</td>
						</tr>
						<c:forEach var="result" items="${requestScope.stslist}">
							<c:if test="${fn:length(result)==7}">
								<tr>
									<c:forEach var="plan" items="${result}">
										<td>
											${plan}
										</td>
									</c:forEach>
								</tr>
							</c:if>
						</c:forEach>
					</table>
				</div>
			</c:if>
		</div>

		<!--弹出登陆层结束-->
		<jsp:include page="foot.jsp"></jsp:include>
	</body>
</html>